from django.urls import path, include
from . import views
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('coursecategory', views.CourseCategoryView, 'coursecategory')  # 课程分类路由
router.register('course', views.CourseView, 'course')  # 课程群查路由
router.register('chapters', views.CourseChapterView, 'chapters')  # 章节
router.register('search', views.CourseSearchView, 'search')  # 搜索
urlpatterns = [
    path('', include(router.urls))
]
